<?php
/**
 * Author: Administrator
 * Date: 2022/7/15 2:05
 */

namespace DesignPatterns\Creation\Builder;

use PhpParser\Builder;

class Director
{

    public function build(BuilderInterface $builder) {
        $builder->createVehicle();
        $builder->addDoor();
        $builder->addEngine();
        $builder->addWheel();

        return $builder->getVehicle();
    }

}